<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>设置>设置人员和角色</title>
<META content="text/html; charset=UTF-8" http-equiv=Content-Type>
<%@include file="../../../include/include.jsp"%>
<link rel="stylesheet" type="text/css" href="${csspath}/public.css" />
<link rel="stylesheet" type="text/css" href="${csspath}/style_l.css" />
<script src="${jspath}/jquery/jquery-1.4.4.js" type="text/javascript"></script>
<script type="text/javascript" src="${webcontext}/javascript/public.js"></script>
<script type="text/javascript" src="${webcontext}/javascript/jquery/jquery.ui.draggable.js"></script>
<script type="text/javascript" src="${webcontext}/javascript/jquery/jquery.alerts.js"></script>
<link rel="stylesheet" type="text/css" href="${csspath}/jquery.alerts.css" />
<script type="text/javascript">

$(document).ready(function() {
	var userCode = "${authDto.userCode}";
	buildTree(contextPath + "/common/getMenuByUserCode",userCode,false);
});

</script>
</head>

<body>

	<!-- content -->
	<div id="content">
		<!-- wrap -->
		<div id="wrap">

			<!-- breadcrumb -->
			<div id="breadcrumb">
            <div class="left">
				<span>人员角色关系维护（特殊授权）详情</span></div>
                <div class="right">
                    <a href="javascript: window.history.back();" class="back">返回</a>
            </div>
			</div>
			<!-- /breadcrumb -->

			<!-- info_div -->
			<div class="info_div">
				<div class="title">
					<p class="min" title="点击展开/隐藏详细信息">基本资料</p>
				</div>
                <div>
				<table class="info_tab">
					<tr>
                    	<td align="center" width="140" valign="middle" rowspan="14">
							<img src="${imagepath}/pictures_l/people.jpg"/>
						</td>
                    </tr>
                    <tr>
                      <td class="label">经销商代码：</td>
                      <td>${authDto.dealerCode}</td>
                      <td class="label">经销商简称：</td>
                      <td>${authDto.dealerAbbreName}</td>
                      <td class="label">人员类型：</td>
                      <td>${authDto.isSGMText}</td>
                    </tr>
                    <tr>
                      <td class="label">员工编号：</td>
                      <td>${authDto.employeeCode}</td>
                      <td class="label">用户ID：</td>
                      <td>${authDto.userCode}</td>
                      <core:if test="${authDto.userGroupCodes == 'saleconsultant'}">
                      <td class="label">销售顾问<br />
                       	 等级：
                      </td>
                      <td>${authDto.saleConsultLevel}</td>
                      </core:if>
                    </tr>
                    
                    <tr>
                      <td colspan="6" class="spliterInfo_Line">
                        <img src="${authDto.photoUrl}" width="550" height="9" />
                      </td>
					</tr>
                    <tr>
                      <td height="31" class="label">员工姓名：</td>
                      <td>${authDto.employeeName}</td>
                      <td class="label">性别：</td>
                      <td>${authDto.genderName}</td>
                      <td class="label">手机：</td>
                      <td>${authDto.mobilePhone}</td>
                    </tr>
                    <tr>
                      <td class="label">可导出数据：</td>
                      <td>
					  	<core:if test="${authDto.exportData == 1}">可导出</core:if>
					  	<core:if test="${authDto.exportData == 2}">不可导出</core:if>
					  </td>
                      <td class="label">电子邮件：</td>
                      <td colspan="3">${authDto.email}</td>
                    </tr>
                    <tr>
                      <td class="label">证件类型：</td>
                      <td>${authDto.certificateName}</td>
                      <td class="label">证件号码：</td>
                      <td>${authDto.certificateCode}</td>
                      <td class="label">婚姻状况：</td>
                      <td>${authDto.marriageStatus}</td>
                    </tr>
                    <tr>
                      <td class="label">籍贯：</td>
                      <td>${authDto.birthPlace}</td>
                      <td class="label">生日：</td>
                      <td><fmt:formatDate value="${authDto.birthDate}" pattern="yyyy-MM-dd"/></td>
                      <td class="label">学历：</td>
                      <td>${authDto.educationText}</td>
                    </tr>
                    <tr>
                       <td class="label">住址：</td>
                       <td colspan="3">${authDto.address}</td>
                       <td class="label">就业状态：</td>
                       <td>${authDto.employmentStatus}</td>
                    </tr>
                    <tr>
                       <td height="25" colspan="6" class="spliterInfo_Line">
                         <img src="../images/pictures_l/spliterInfo_line_04.gif" width="550" height="9" />
                       </td>
					</tr>
                    <tr>
                       <td class="label"><p>目前岗位入职</p>
                       <p>日期：</p></td>
                       <td><fmt:formatDate value="${authDto.onboardDate}" pattern="yyyy-MM-dd"/></td>
                       <td class="label"><p>首服务品牌</p>
                       <p>日期：</p></td>
                       <td><fmt:formatDate value="${authDto.brandFirstServiceDate}" pattern="yyyy-MM-dd"/></td>
                       <td class="label"><p>是否受过品牌</p>
                       <p>培训：</p></td>
                       <td>
                       	<core:if test="${authDto.isBrandTraining == 1}">是</core:if>
                       	<core:if test="${authDto.isBrandTraining == 2}">无</core:if>
					  </td>
                    </tr>
                    <tr>
                       <td class="label"><p>通过岗位培训</p>
                        <p>日期：</p></td>
                       <td><fmt:formatDate value="${authDto.passTrainingDate}" pattern="yyyy-MM-dd"/></td>
                       <td class="label">是否有驾照：</td>
                       <td>
					   	<core:if test="${authDto.hasDriverLicense == 1}">是</core:if>
                       	<core:if test="${authDto.hasDriverLicense == 2}">无</core:if>
					   </td>
                       <td class="label">&nbsp;</td>
                       <td>&nbsp;</td>
                    </tr>
                    
                  </table>
                </div>
			</div>
			<!-- /info_div -->
            <div class="spliter h_5"></div>
            
            <!-- info_div -->
			<div class="info_div">
            	<div class="title"><p title="点击展开/隐藏详细信息">岗位与组织</p>
           	  </div>
                <div>
                  <div class="data_div">
                  <table class="data_tab">
	                 <tr>
	                   <th class="w_20">岗位</th>
	                   <th class="w_20">默认岗位</th>
	                     <th class="w_20">组织名称</th>
	                     <th class="w_20">组织主管</th>
	                     <th class="w_20">上级组织名称</th>
	                 </tr>
	                 <core:forEach items="${userOrgList}" var="userOrg">
	                 <tr>
	                 	<td>${userOrg.userGroupName}</td>
	                 	<td>
	                 		<core:if test="${userOrg.defualtUserGroupId == 1}">是</core:if>
	                 	</td>
	                 	<td>${userOrg.orgName}</td>
	                 	<td>${userOrg.isManageUserGroupName}</td>
	                 	<td>${userOrg.parentOrgName}</td> 
	                 </tr>
	                 </core:forEach>
                  </table>
                    </div>
                </div>
			</div>
			<!-- /info_div -->

        <div class="spliter h_10"></div>
            
            <!-- info_div -->
			<div class="info_div">
            	<div class="title"><p class="min" title="点击展开/隐藏详细信息">角色</p></div>
                <div>
                    <div class="info_div">
                        <table class="data_tab">
                            <tr>
                                <th class="w_20">角色代码</th>
                                <th class="w_20">角色名称</th>
                            </tr>
                            <core:forEach items="${roleList}" var="role">
                            	<td>${role.roleCode}</td>
                            	<td>${role.roleName}</td>
                            </core:forEach>
                        </table>
                    </div>
                </div>
			</div>
			<!-- /info_div -->
            
            <div class="spliter h_10"></div>
            
            <!-- input_div -->
			<div class="input_div">
				<div class="title">
					<span>可操作菜单</span>
				</div>
				<div id="area_jxs">
					<div class="spliter h_5"></div>
                            <!-- tree -->
                            <div id="menuSetTree" class="tree_div" ></div>
                            <!-- /tree -->
				 </div>
				<div class="spliter h_5"></div>

            
  

		</div>
        <div class="spliter h_10"></div>
        <div class="info_div">
            	<div class="title"><p title="点击展开/隐藏详细信息">培训记录</p>
           	  </div>
                <div>
                  <div class="data_div">
                  <table class="data_tab">
                            <tr>
                              <th class="w_20">岗位</th>
                              <th>课程分类名称</th>
                                <th>课程代码</th>
                                <th>课程名称</th>
                                <th>课程开始日期</th>
                                <th>培训天数</th>
                                <th>出席情况</th>
                                <th>考核成绩</th>
                                <th>合格/不合格</th>
                            </tr>
                            <tr>
                              <td>岗位1</td>
                              <td>名称1</td>
                                <td>代码1</td>
                                <td>名称1</td>
                                <td>2011-01-01</td>
                                <td>10</td>
                                <td>出席</td>
                                <td>90</td>
                                <td>合格</td>
                            </tr>
                        </table>
                    </div>
                </div>
			</div>
		<!-- /wrap -->
	</div>
	<!-- /content -->

</body>
</html>